# -*- coding: utf-8 -*- 
#
# Description:
#
#  Definiton
#
#
#
# Changes:
#
# 2012-01-10
# Initial Commit
#
#
# Copyright 2010-2012, WyDev Team.
# Author: Polo35 (polo35580@hotmail.fr)
#
# Licenced under Academic Free License version 3.0
# Review WyGui README & LICENSE files for further details.

nname: 6
n 6(None)[]:
	i: 
	o: 

self.nodes: {6: <unpyclib.structure.node instance at 0xb7691ecc>}
nname: 236
n 236(None)[]:
	i: 197(), 235()
	o: 

nname: 235
n 235(None)[]:
	i: 177(f)
	o: 236()

nname: 197
n 197(None)[raise DVDCheckException(mess + ' seconds (%s, %s)' % (a['seconds'], b['seconds']))
]:
	i: 177(t)
	o: 236()

nname: 177
n 177(a['seconds'] != b['seconds'])[]:
	i: 138(), 176()
	o: 197(t), 235(f)

nname: 176
n 176(None)[]:
	i: 118(f)
	o: 177()

nname: 138
n 138(None)[raise DVDCheckException(mess + ' minutes (%s, %s)' % (a['minutes'], b['minutes']))
]:
	i: 118(t)
	o: 177()

nname: 118
n 118(a['minutes'] != b['minutes'])[]:
	i: 79(), 117()
	o: 138(t), 176(f)

nname: 117
n 117(None)[]:
	i: 59(f)
	o: 118()

nname: 79
n 79(None)[raise DVDCheckException(mess + ' hours (%s,%s)' % (a['hours'], b['hours']))
]:
	i: 59(t)
	o: 118()

nname: 59
n 59(a['hours'] != b['hours'])[]:
	i: 20(), 58()
	o: 79(t), 117(f)

nname: 58
n 58(None)[]:
	i: 0(f)
	o: 59()

nname: 20
n 20(None)[raise DVDCheckException(mess + ' num (%s,%s)' % (a['num'], b['num']))
]:
	i: 0(t)
	o: 59()

nname: 0
n 0(a['num'] != b['num'])[]:
	i: 
	o: 20(t), 58(f)

nname: 236
n 236(None)[]:
	i: 118()
	o: 

nname: 118
n 118(None)[if a['minutes'] != b['minutes']:
	raise DVDCheckException(mess + ' minutes (%s, %s)' % (a['minutes'], b['minutes']))
if a['seconds'] != b['seconds']:
	raise DVDCheckException(mess + ' seconds (%s, %s)' % (a['seconds'], b['seconds']))
]:
	i: 0()
	o: 236()

nname: 0
n 0(None)[if a['num'] != b['num']:
	raise DVDCheckException(mess + ' num (%s,%s)' % (a['num'], b['num']))
if a['hours'] != b['hours']:
	raise DVDCheckException(mess + ' hours (%s,%s)' % (a['hours'], b['hours']))
]:
	i: 
	o: 118()

nname: 236
n 236(None)[]:
	i: 0()
	o: 

nname: 0
n 0(None)[if a['num'] != b['num']:
	raise DVDCheckException(mess + ' num (%s,%s)' % (a['num'], b['num']))
if a['hours'] != b['hours']:
	raise DVDCheckException(mess + ' hours (%s,%s)' % (a['hours'], b['hours']))
if a['minutes'] != b['minutes']:
	raise DVDCheckException(mess + ' minutes (%s, %s)' % (a['minutes'], b['minutes']))
if a['seconds'] != b['seconds']:
	raise DVDCheckException(mess + ' seconds (%s, %s)' % (a['seconds'], b['seconds']))
]:
	i: 
	o: 236()

nname: 0
n 0(None)[if a['num'] != b['num']:
	raise DVDCheckException(mess + ' num (%s,%s)' % (a['num'], b['num']))
if a['hours'] != b['hours']:
	raise DVDCheckException(mess + ' hours (%s,%s)' % (a['hours'], b['hours']))
if a['minutes'] != b['minutes']:
	raise DVDCheckException(mess + ' minutes (%s, %s)' % (a['minutes'], b['minutes']))
if a['seconds'] != b['seconds']:
	raise DVDCheckException(mess + ' seconds (%s, %s)' % (a['seconds'], b['seconds']))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb7699bec>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Number of Title (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Number of Title (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb76991cc>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Number of PTT (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Number of PTT (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769948c>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Volume Name (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Volume Name (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769920c>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Speed (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Speed (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb76992ac>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Audio Info (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Audio Info (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769910c>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Audio stream (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Audio stream (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769934c>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Sub stream (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Sub stream (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769926c>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Sub info (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Sub info (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb76993cc>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Available stream (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Available stream (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769964c>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Button info (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Button info (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769946c>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Display mode (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Display mode (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769952c>}
nname: 0
n 0(None)[check_time(a, b, 'PTT Location')
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb7691dcc>}
nname: 0
n 0(None)[check_time(a, b, 'PTT Duration')
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb7691ecc>}
nname: 0
n 0(None)[check_time(a, b, 'Title Location')
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb7691d4c>}
nname: 0
n 0(None)[check_time(a, b, 'Title duration')
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb7691eec>}
nname: 0
n 0(None)[]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb7691d8c>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Parental Info (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Parental Info (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769956c>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Number of angle (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Number of angle (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb76995ec>}
nname: 39
n 39(None)[]:
	i: 12(), 38()
	o: 

nname: 38
n 38(None)[]:
	i: 0(f)
	o: 39()

nname: 12
n 12(None)[raise DVDCheckException('Current angle (%s, %s)' % (a, b))
]:
	i: 0(t)
	o: 39()

nname: 0
n 0(a != b)[]:
	i: 
	o: 12(t), 38(f)

nname: 0
n 0(None)[if a != b:
	raise DVDCheckException('Current angle (%s, %s)' % (a, b))
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769942c>}
nname: 0
n 0(None)[class DVDCheckException(Exception):
	pass

def check_time(a, b, mess):
	if a['num'] != b['num']:
		raise DVDCheckException(mess + ' num (%s,%s)' % (a['num'], b['num']))
	if a['hours'] != b['hours']:
		raise DVDCheckException(mess + ' hours (%s,%s)' % (a['hours'], b['hours']))
	if a['minutes'] != b['minutes']:
		raise DVDCheckException(mess + ' minutes (%s, %s)' % (a['minutes'], b['minutes']))
	if a['seconds'] != b['seconds']:
		raise DVDCheckException(mess + ' seconds (%s, %s)' % (a['seconds'], b['seconds']))

def check_number_of_title(a, b):
	if a != b:
		raise DVDCheckException('Number of Title (%s, %s)' % (a, b))

def check_number_of_ptt(a, b):
	if a != b:
		raise DVDCheckException('Number of PTT (%s, %s)' % (a, b))

def check_volume_name(a, b):
	if a != b:
		raise DVDCheckException('Volume Name (%s, %s)' % (a, b))

def check_speed(a, b):
	if a != b:
		raise DVDCheckException('Speed (%s, %s)' % (a, b))

def check_audio_info(a, b):
	if a != b:
		raise DVDCheckException('Audio Info (%s, %s)' % (a, b))

def check_audio_stream(a, b):
	if a != b:
		raise DVDCheckException('Audio stream (%s, %s)' % (a, b))

def check_sub_stream(a, b):
	if a != b:
		raise DVDCheckException('Sub stream (%s, %s)' % (a, b))

def check_sub_info(a, b):
	if a != b:
		raise DVDCheckException('Sub info (%s, %s)' % (a, b))

def check_available_stream(a, b):
	if a != b:
		raise DVDCheckException('Available stream (%s, %s)' % (a, b))

def check_button_info(a, b):
	if a != b:
		raise DVDCheckException('Button info (%s, %s)' % (a, b))

def check_display_mode(a, b):
	if a != b:
		raise DVDCheckException('Display mode (%s, %s)' % (a, b))

def check_ptt_location(a, b):
	check_time(a, b, 'PTT Location')

def check_ptt_duration(a, b):
	check_time(a, b, 'PTT Duration')

def check_title_location(a, b):
	check_time(a, b, 'Title Location')

def check_title_duration(a, b):
	check_time(a, b, 'Title duration')

def check_player_mode(a, b):
	pass

def check_get_parental_info(a, b):
	if a != b:
		raise DVDCheckException('Parental Info (%s, %s)' % (a, b))

def check_number_of_angle(a, b):
	if a != b:
		raise DVDCheckException('Number of angle (%s, %s)' % (a, b))

def check_current_angle(a, b):
	if a != b:
		raise DVDCheckException('Current angle (%s, %s)' % (a, b))

]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb769182c>}
class DVDCheckException(Exception):
	pass

def check_time(a, b, mess):
	if a['num'] != b['num']:
		raise DVDCheckException(mess + ' num (%s,%s)' % (a['num'], b['num']))
	if a['hours'] != b['hours']:
		raise DVDCheckException(mess + ' hours (%s,%s)' % (a['hours'], b['hours']))
	if a['minutes'] != b['minutes']:
		raise DVDCheckException(mess + ' minutes (%s, %s)' % (a['minutes'], b['minutes']))
	if a['seconds'] != b['seconds']:
		raise DVDCheckException(mess + ' seconds (%s, %s)' % (a['seconds'], b['seconds']))

def check_number_of_title(a, b):
	if a != b:
		raise DVDCheckException('Number of Title (%s, %s)' % (a, b))

def check_number_of_ptt(a, b):
	if a != b:
		raise DVDCheckException('Number of PTT (%s, %s)' % (a, b))

def check_volume_name(a, b):
	if a != b:
		raise DVDCheckException('Volume Name (%s, %s)' % (a, b))

def check_speed(a, b):
	if a != b:
		raise DVDCheckException('Speed (%s, %s)' % (a, b))

def check_audio_info(a, b):
	if a != b:
		raise DVDCheckException('Audio Info (%s, %s)' % (a, b))

def check_audio_stream(a, b):
	if a != b:
		raise DVDCheckException('Audio stream (%s, %s)' % (a, b))

def check_sub_stream(a, b):
	if a != b:
		raise DVDCheckException('Sub stream (%s, %s)' % (a, b))

def check_sub_info(a, b):
	if a != b:
		raise DVDCheckException('Sub info (%s, %s)' % (a, b))

def check_available_stream(a, b):
	if a != b:
		raise DVDCheckException('Available stream (%s, %s)' % (a, b))

def check_button_info(a, b):
	if a != b:
		raise DVDCheckException('Button info (%s, %s)' % (a, b))

def check_display_mode(a, b):
	if a != b:
		raise DVDCheckException('Display mode (%s, %s)' % (a, b))

def check_ptt_location(a, b):
	check_time(a, b, 'PTT Location')

def check_ptt_duration(a, b):
	check_time(a, b, 'PTT Duration')

def check_title_location(a, b):
	check_time(a, b, 'Title Location')

def check_title_duration(a, b):
	check_time(a, b, 'Title duration')

def check_player_mode(a, b):
	pass

def check_get_parental_info(a, b):
	if a != b:
		raise DVDCheckException('Parental Info (%s, %s)' % (a, b))

def check_number_of_angle(a, b):
	if a != b:
		raise DVDCheckException('Number of angle (%s, %s)' % (a, b))

def check_current_angle(a, b):
	if a != b:
		raise DVDCheckException('Current angle (%s, %s)' % (a, b))

